package nz.co.doherty.gwtpbreadcrumbs.server.guice;

import nz.co.doherty.gwtpbreadcrumbs.server.handler.customer.CustomerCreateHandler;
import nz.co.doherty.gwtpbreadcrumbs.server.handler.customer.CustomerListHandler;
import nz.co.doherty.gwtpbreadcrumbs.server.handler.customer.CustomerRetrieveHandler;
import nz.co.doherty.gwtpbreadcrumbs.server.handler.product.ProductCreateHandler;
import nz.co.doherty.gwtpbreadcrumbs.server.handler.product.ProductListHandler;
import nz.co.doherty.gwtpbreadcrumbs.server.handler.product.ProductRetrieveHandler;
import nz.co.doherty.gwtpbreadcrumbs.server.handler.reset.ResetDataHandler;
import nz.co.doherty.gwtpbreadcrumbs.shared.rpc.customer.CustomerCreateAction;
import nz.co.doherty.gwtpbreadcrumbs.shared.rpc.customer.CustomerListAction;
import nz.co.doherty.gwtpbreadcrumbs.shared.rpc.customer.CustomerRetrieveAction;
import nz.co.doherty.gwtpbreadcrumbs.shared.rpc.product.ProductCreateAction;
import nz.co.doherty.gwtpbreadcrumbs.shared.rpc.product.ProductListAction;
import nz.co.doherty.gwtpbreadcrumbs.shared.rpc.product.ProductRetrieveAction;
import nz.co.doherty.gwtpbreadcrumbs.shared.rpc.reset.ResetDataAction;

import com.google.inject.Module;
import com.philbeaudoin.gwtp.dispatch.server.guice.HandlerModule;

public class DispatchHandlerModule extends HandlerModule implements Module {

	@Override
	protected void configureHandlers() {
		
		bindHandler(ProductCreateAction.class, ProductCreateHandler.class);
		bindHandler(ProductListAction.class, ProductListHandler.class);
		bindHandler(ProductRetrieveAction.class, ProductRetrieveHandler.class);

		bindHandler(CustomerCreateAction.class, CustomerCreateHandler.class);
		bindHandler(CustomerListAction.class, CustomerListHandler.class);
		bindHandler(CustomerRetrieveAction.class, CustomerRetrieveHandler.class);
		
		bindHandler(ResetDataAction.class, ResetDataHandler.class);
	
	}

}
